package com.yzc.mihuyou.service.impl;

import com.yzc.mihuyou.entity.Compilations;
import com.yzc.mihuyou.mapper.CompilationsMapper;
import com.yzc.mihuyou.service.CompilationsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 集合 服务实现类
 * </p>
 *
 * @author 易紫诚
 * @since 2022-04-28
 */
@Service
public class CompilationsServiceImpl extends ServiceImpl<CompilationsMapper, Compilations> implements CompilationsService {

    @Autowired
    CompilationsMapper compilationsMapper;

    @Override
    public int addComImc(Compilations compilations) {
        compilationsMapper.insert(compilations);
        return compilations.getId();
    }
}
